
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">

    <title>更改头像-班级留言本</title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/css/jumbotron.css" rel="stylesheet">
    <style>
        body {
            padding-top: 120px;
        }
        #err{
            display: none;
        }
    </style>

</head>

<body>

<% include header.ejs%>

<div class="container">
    <h1>更改头像:</h1>
    <!-- Example row of columns -->
    <div class="row col-lg-6">
        <form action="/doSetAvatar" method="post"  enctype="multipart/form-data" >
            <div class="form-group">
                <label for="avatar">用户头像</label>
                <input type="file" class="form-control" id="avatar" name="avatar">
            </div>
            <button type="submit" class="btn btn-default" id="upAvatar">上传</button>
        </form>
        <footer>
            <p>&copy; 2016 Company, Inc.</p>
        </footer>
    </div>
</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</body>
</html>
